package cn.ejiajunxy.manager.utils;

import android.content.Context;
import android.widget.Toast;

import com.leo.utils.CheckUtils;

/**
 * Created by zhangguobao on 2018/2/7.
 */

public class ToastUtils {
    public static void showToast(Context context, String msg) {
        if (CheckUtils.isEmpty(msg)) {
            return;
        }
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }

    public static void showNetError(Context context) {
        Toast.makeText(context, "网络不给力", Toast.LENGTH_SHORT).show();
    }
}
